package cloudgamesaumysql

import (
	"gorm.io/gorm"
	"time"
)

/*
  @author liubogeng
  @date   2024/12/27 18:24
*/

// CGGameAUBatchUserSwitchBlacklistItem 批处理黑名单表
type CGGameAUBatchUserSwitchBlacklistItem struct {
	ID                     int64          `json:"id" gorm:"column:id;type:bigint;primaryKey;autoIncrement;comment:ID"`
	UserID                 int64          `json:"user_id" gorm:"column:user_id;type:bigint;not null;default:0;comment:用户ID"`
	SwitchBlacklistBatchID string         `json:"switch_blacklist_batch_id" gorm:"column:switch_blacklist_batch_id;type:varchar(256);default:'';not null;comment:批处理ID"`
	Phone                  string         `json:"phone" gorm:"column:phone;type:varchar(128);default:'';not null;comment:手机号"`
	UseStartTime           time.Time      `json:"use_start_time" gorm:"column:use_start_time;type:datetime;default:null;comment:限时使用的开始时间"`
	UseEndTime             time.Time      `json:"use_end_time" gorm:"column:use_end_time;type:datetime;default:null;comment:限时使用的结束时间"`
	CreatedAt              time.Time      `json:"created_at" gorm:"column:created_at;type:datetime;comment:该条记录创建时间"`
	UpdatedAt              time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime;comment:该条记录修改时间"`
	DeletedAt              gorm.DeletedAt `json:"-" gorm:"index;type:datetime;comment:该条记录删除时间"`
}

func (CGGameAUBatchUserSwitchBlacklistItem) TableName() string {
	return "cg_game_au_batch_user_switch_blacklist_item"
}
